<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite">

<composite:interface>
	<composite:attribute name="username" />
	<composite:attribute name="password" />
	<composite:attribute name="doConnect"
		method-signature="void action()" />
</composite:interface>

<composite:implementation>
	<h:form id="login">
		<p:panel>
			<p:panelGrid columns="2" style="border:none;">
				<p:outputLabel value="Identifiant :" for="username"></p:outputLabel>
				<p:inputText id="username" value="#{cc.attrs.username}"></p:inputText>
				<p:outputLabel value="Mot de passe :" for="password"></p:outputLabel>
				<p:inputText id="password" value="#{cc.attrs.password}"></p:inputText>
			</p:panelGrid>
			<f:facet name="footer">
				<p:commandButton value="Envoyer"
					action="#{cc.attrs.doConnect}"
					ajax="false">
				</p:commandButton>
			</f:facet>
		</p:panel>
	</h:form>
</composite:implementation>
</html>